package com.ice.work.moment.socket.service;

import com.honeybee.cloud.framework.base.exception.business.BaseBizException;
import com.ice.work.moment.facade.socket.dto.PushUserDTO;
import com.ice.work.moment.facade.socket.model.PushUser;

/**
 * @Description 在线用户
 * @Author DELL
 * @Create 2019-04-17
 * @Since 1.0.0
 */
public interface IPushUserService {
    /**
     * 保存
     *
     * @param pushUser
     * @return
     * @throws BaseBizException
     */
    Boolean add(PushUser pushUser) throws BaseBizException;


    /**
     * 登出
     *
     * @param pushId
     * @return
     * @throws BaseBizException
     */
    void logout(Long pushId) throws BaseBizException;
    /**
     * 登出
     *
     * @param pushId
     * @return
     * @throws BaseBizException
     */
    PushUserDTO findByPushId(Long pushId) throws BaseBizException;

}
